//
//  LXCustomerDetailsTopView.m
//  ZuLinProject
//
//  Created by bancheng on 2022/9/6.
//  Copyright © 2022 LX_App. All rights reserved.
//

#import "LXCustomerDetailsTopView.h"
#import "KeHuInfoModel.h"
@implementation LXCustomerDetailsTopView

- (void)awakeFromNib{
    [super awakeFromNib];
    
    [self.backView addCorner:3];
}
- (void)setModel:(KeHuInfoModel *)model{
    
    _model = model;
    
    
    [self.btn5 setTitle:[NSString stringWithNull:model.customerName] forState:UIControlStateNormal];
    [self.btn5 setIconInRightWithSpacing:3];
    self.lable2.text = [NSString stringWithFormat:@"电话号码  %@", model.customerPhone];

    
    if(model.isSign == 1){
        self.lable4.text = @"签约中";
        self.lable4.textColor = ColorWith3C6CFC;
        self.lable4.backgroundColor = [ColorWith3C6CFC colorWithAlphaComponent:0.1];
        self.lable3.text = [NSString stringWithFormat:@"合同日期  %@ 至 %@",[NSString stringWithNull:model.startTime],[NSString stringWithNull:model.endTime]];

    }
    else {
        self.lable4.text = @"未签约";
        self.lable4.textColor = ColorWithFF921C;
        self.lable4.backgroundColor = [ColorWithFF921C colorWithAlphaComponent:0.1];
        self.lable3.text = @"合同日期  - 至 -";

    }
    
}
@end
